import request from '@/utils/request'

// 查询工资修改日志列表
export function listStaffPayrollLog(query) {
  return request({
    url: '/compensationManagement/staffPayrollLog/list',
    method: 'get',
    params: query
  })
}

// 查询工资修改日志详细
export function getStaffPayrollLog(logId) {
  return request({
    url: '/compensationManagement/staffPayrollLog/' + logId,
    method: 'get'
  })
}

// 新增工资修改日志
export function addStaffPayrollLog(data) {
  return request({
    url: '/compensationManagement/staffPayrollLog',
    method: 'post',
    data: data
  })
}

// 修改工资修改日志
export function updateStaffPayrollLog(data) {
  return request({
    url: '/compensationManagement/staffPayrollLog',
    method: 'put',
    data: data
  })
}

// 删除工资修改日志
export function delStaffPayrollLog(logId) {
  return request({
    url: '/compensationManagement/staffPayrollLog/' + logId,
    method: 'delete'
  })
}
